package com.lianzhihui.romeex.widget.dialog;

import android.content.Context;
import android.view.View;
import android.widget.Button;

import androidx.annotation.NonNull;

import com.lianzhihui.romeex.R;
import com.lianzhihui.romeex.inter.DialogListener;
import com.lianzhihui.romeex.ui.base.BaseDialog;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Description:
 * Author: RAMON
 * CreateDate: 11/17/20 6:33 PM
 * UpdateUser:
 * UpdateDate:
 * UpdateRemark:
 * Version:
 */
public class BatDialog extends BaseDialog {

    @BindView(R.id.bt_rebat)
    Button bt_rebat;
    @BindView(R.id.bt_next)
    Button bt_next;

    DialogListener listener;

    public BatDialog(@NonNull Context context) {
        super(context);
    }

    public void setListener(DialogListener listener) {
        this.listener = listener;
    }

    @Override
    protected int provideViewId() {
        return R.layout.dialog_bat_layout;
    }

    @Override
    protected void initView() {

    }

    @OnClick({R.id.bt_rebat, R.id.bt_next})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.bt_rebat:
                dismiss();
                break;
            case R.id.bt_next:
                if (listener != null) {
                    listener.onPassed();
                }
                break;
        }
    }

}
